home *** CD-ROM | disk | FTP | other *** search
- if(this._x > -100)
- {
- this._x += _parent.speed - 5;
- panPos = int((this._x - 275) / 2.75);
- volPos = 100 - Math.abs(panPos / 3);
- sfxRun.setPan(panPos);
- sfxRun.setVolume(volPos);
- if(this._x > 115 and this._x < 145 and _parent.rik._y > 280 and _parent.timeLeft > 0 and carryRicicle == 1)
- {
- carryRicicle = 0;
- anim.ricicle._y = 200;
- _parent.rik.anim.ricicle.gotoAndPlay(2);
- _parent.riciclesCollected = _parent.riciclesCollected + 1;
- }
- prevFrame();
- }
- else
- {
- sfxRun.stop();
- gotoAndPlay(1);
- }
-